//
//  CollectionData.h
//  NewSelf
//
//  Created by fred on 12-11-18.
//  Copyright (c) 2012年 fred. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef enum {
    kPageType_min = 0,
    kCollection_playing,
    kCollection_played,
    kPageType_max
} kCollectionType;

@interface CollectionData : NSObject

// plist 的文件名和第一级 key
+ (NSString *)getPlistName:(kCollectionType)type;
// 判断是否已经收藏
+ (BOOL)isExisted:(NSDictionary *)collection type:(kCollectionType)type;
// 添加收藏
+ (BOOL)addToCollection:(NSDictionary *)collection type:(kCollectionType)type;
// 删除收藏
+ (BOOL)deleteFromCollection:(NSDictionary *)collection type:(kCollectionType)type;
// 获取所有收藏
+ (NSMutableDictionary *)getCollections:(kCollectionType)type;
// 获取收藏，返回数组
+ (NSMutableArray *)getArrayData:(kCollectionType)type;
// 替换收藏的内容
+ (BOOL)setCollections:(NSDictionary *)collection type:(kCollectionType)type;
// 是否有数据
+ (BOOL)hasContent:(kCollectionType)type;
@end